package com.lapian.designmode.observer.improve.test.improveF;

/**
 * 创建日期：2022/5/31 0031 16:22
 *
 * @author TONY.SUN
 * 类说明：
 */
public class Client {
    public static void main(String[] args) {
        //创建观察者
        TangSangAppF tangSangAppF = new TangSangAppF("唐三");
        TangSangAppF xiaoWu = new TangSangAppF("小舞-");
        TangSangAppF QianRenXve = new TangSangAppF("千仞雪");
        //创建被观察者
        WeatherDateF weatherDateF = new WeatherDateF();
        //注册观察者
        weatherDateF.registerObserver(tangSangAppF);
        weatherDateF.registerObserver(xiaoWu);
        weatherDateF.registerObserver(QianRenXve);
        //被观察者刷新
        weatherDateF.setDate("下雨");

    }
}
